cmake_minimum_required(VERSION 3.0.2)
project(laser_rangefinder)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  serial
  std_msgs
  message_generation
)

include_directories( include
  ${catkin_INCLUDE_DIRS}
)
add_message_files(
  FILES
  laser_rangefinder.msg
)
generate_messages(
  DEPENDENCIES
  std_msgs
)


catkin_package(
  CATKIN_DEPENDS
  std_msgs
  message_runtime
)


add_executable(laser_rangefinder src/laser_rangefinder_node.cpp)
target_link_libraries(laser_rangefinder ${catkin_LIBRARIES})
add_dependencies(laser_rangefinder laser_rangefinder_generate_messages_cpp)
